<?php
/**
 * Created by PhpStorm.
 * User: xujm
 * Date: 2016/8/9
 * Time: 19:17
 */

use Phalcon\Mvc\Model;


class Nav extends Model
{
    public $id;
    public $cid;
    public $parentid;
    public $label;
    public $target;
    public $href;
    public $status = 0;
    public $listorder;

    public function getSource()
    {
        return 'nav';
    }
    public function initialize()
    {
        $this->belongsTo('cid', 'nav_cat', 'navcid');
    }
    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getCid()
    {
        return $this->cid;
    }

    /**
     * @return mixed
     */
    public function getParentid()
    {
        return $this->parentid;
    }

    /**
     * @return mixed
     */
    public function getLabel()
    {
        return $this->label;
    }

    /**
     * @return mixed
     */
    public function getTarget()
    {
        return $this->target;
    }

    /**
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @return mixed
     */
    public function getHref()
    {
        return $this->href;
    }

    /**
     * @return mixed
     */
    public function getListorder()
    {
        return $this->listorder;
    }

    /**
     * @param mixed $cid
     */
    public function setCid($cid)
    {
        $this->cid = $cid;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @param mixed $href
     */
    public function setHref($href)
    {
        $this->href = $href;
    }

    /**
     * @param mixed $label
     */
    public function setLabel($label)
    {
        $this->label = $label;
    }

    /**
     * @param mixed $listorder
     */
    public function setListorder($listorder)
    {
        $this->listorder = $listorder;
    }


    /**
     * @param mixed $parentid
     */
    public function setParentid($parentid)
    {
        $this->parentid = $parentid;
    }


    /**
     * @param int $status
     */
    public function setStatus($status)
    {
        $this->status = $status;
    }


    /**
     * @param mixed $target
     */
    public function setTarget($target)
    {
        $this->target = $target;
    }







}
